<template>
  <div>
    <header class="head">端点信息</header>
    <el-form label-width="100px">
      <el-form-item label="请求方式：">
        <el-radio label="POST" :value="fbOptions.flow.serviceDomain.httpRequestMethod"
          >POST</el-radio
        >
      </el-form-item>
      <el-form-item label="发布路径：">
        {{ fbOptions.flow.serviceDomain.mockUrl }}
      </el-form-item>
    </el-form>
    <div style="margin-bottom: 16px;"></div>
    <header class="head">输入参数</header>
    <el-table :data="fbOptions.flow.serviceDomain.paramIn" border>
      <el-table-column prop="nodeName" label="参数名"></el-table-column>
      <el-table-column prop="nodeLabel" label="参数描述"></el-table-column>
      <el-table-column label="参数类型" prop="nodeType" width="140">
        <template #default="scope">
          <span>{{ selectDictLabel(fbOptions.keyTypeList, scope.row.nodeType) }}</span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "custom-endpoint",
  props: {
    fbOptions: {
      type: Object,
      default: () => {
      }
    },
  },
  computed: {
  },
};
</script>

<style lang="scss" scoped>
.head {
  height: 40px;
  text-align: center;
  line-height: 40px;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  background-color: #ccc;
  margin-bottom: 16px;
}
.el-form-item {
  margin-bottom: 0px;
}
</style>
